package org.brownflat.dbinit.upgrade;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>Database Init &copy Rupert Jones 2013</p>
 *
 * @author rup
 */
public class DefaultUpgrade implements Upgrade {

    private int sequence = 0;
    private String sql = null;
    private String name = null;

    public DefaultUpgrade(int sequence, String sql, String name) {
        this.sequence = sequence;
        this.sql = sql;
        this.name = name;
    }

    public int getSequence() {
        return sequence;
    }

    public List<UpgradeStatement> getSql() {
        List<UpgradeStatement> statements = new ArrayList<UpgradeStatement>();
        statements.add(new UpgradeStatement(sql));
        return statements;
    }

    public String getName() {
        return name;
    }
}
